package com.jt.chapter04.mapper;

import com.jt.chapter04.entity.Permission;
import com.jt.chapter04.entity.Role;
import com.jt.chapter04.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jiang tao
 * @date 2022/1/6
 * @description:
 **/
public interface UserMapper {
    User getUser(String username);

    List<Role> getRoleList(Long id);


    List<Permission> getPermissionListByUserId(@Param("userId") Long userId);
}
